package com.kingyun.gpsinspection.purificationservice.facade.service.iam.adm;

import com.alibaba.fastjson.JSONObject;
import com.kingyun.gpsinspection.purificationservice.facade.model.iam.adm.Comment;
import com.kingyun.gpsinspection.purificationservice.facade.model.iam.adm.Knowledge;

/**
 * @version V1.0
 * @Package com.cqhilink.iot.integratedapplicationmanagement.services.innerservice.adm
 * @Description: ${TODO}(知识库服务)
 * @author: lutianbo
 * @date: 2017/2/16,0016
 */

public interface IamKnowledgeService
{
    /**
     * 删除
     * @param knowledgeIds
     * @return
     */
    int deleteByPrimaryKey(String[] knowledgeIds);
    /**
     * 新增知识库
     * @param record
     * @return
     */
    int insertSelective(Knowledge record);

    /**
     * 根据id查询信息
     * @param knowledgeId
     * @return
     */
    Knowledge selectByPrimaryKey(String knowledgeId);

    /**
     * 更新
     * @param record
     * @return
     */
    int updateByPrimaryKeySelective(Knowledge record);

    /**
     * 列表查询
     * @param bootstrapSearchBean
     * @return
     */
    JSONObject list(Knowledge bootstrapSearchBean);

    /**
     * 查询评论
     * @param comment
     * @return
     */
    JSONObject queryComment(Comment comment);
}
